import { put, call } from 'redux-saga/effects'
import { registerAction } from '../../actions/register/register'
const initState = {
  userName: '',
  password: '',
  type: 'boss'
}
export function* register(action) {
  const res = yield call(registerAction, action.payload)
  if (action.callback) {
    action.callback(res)
  }
}